// 先引入request
import  request  from '../utils/http';

// 容器组管理接口
export function getEquipmentGroup(data:any) {
  return request({
    url: '/biosample/equipmentgroup/list',
    method: 'get',
    params: data
  });
}

// 新增
export function addSave(data:any) {
  return request({
    url: '/biosample/equipmentgroup/save',
    method: 'post',
    data
  });
}

// 组编码
export function getGroupCode() {
  return request({
    url: '/biosample/codecsequence/get-equipment-group-sequence',
    method: 'get',
    });
}

// 编辑
export function editSave(data:any) {
  return request({
    url: '/biosample/equipmentgroup/update',
    method: 'post',
    data
  });
}

// 编辑详情
export function editDetail(data:any) {
  return request({
    url: `/biosample/equipmentgroup/info/${data}`,
    method: 'get',
  });
}
// 删除
export function deleteGroup(data:any) {
  return request({
    url: `/biosample/equipmentgroup/delete`,
    method: 'post',
    data
  });
}